import axios from '../axios'

/* 
 * 博客模块
 */
// 列表查询
export const blogList = (data) => {
    return axios({
        url: '/blogList',
        method: 'post',
        data
    })
}

// 博客详情
export const blogInfo = (data) => {
    return axios({
        url: '/blogInfo',
        method: 'post',
        data
    })
}

// 博客详情
export const like = (data) => {
    return axios({
        url: '/like',
        method: 'post',
        data
    })
}


// 评论详情
export const commentInfo = (data) => {
    return axios({
        url: '/commentInfo',
        method: 'post',
        data
    })
}

// 新增评论
export const addComment = (data) => {
    return axios({
        url: '/addComment',
        method: 'post',
        data
    })
}